package com.mtl.inmigrant.shoes;

import com.mtl.inmigrant.shoes.preferences.SharedPreferencesImmigrant;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

public class MtlInmigrantShoesActivity extends Activity {
    /** Called when the activity is first created. */
	
	private SharedPreferences preferences;

	
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
    	
    	
    	super.onCreate(savedInstanceState);
		setContentView(R.layout.main_options);
		ImageButton button = (ImageButton) findViewById(R.id.ButtonLoading);
		ImageButton buttonList = (ImageButton) findViewById(R.id.ButtonListActivities);
		// Initialize preferences
		preferences = PreferenceManager.getDefaultSharedPreferences(this);

		button.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(MtlInmigrantShoesActivity.this, ActivityMtlInmigrantShoesAct.class);
				startActivity(i);
			}
		});
		
		buttonList.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				 Intent i = new Intent(MtlInmigrantShoesActivity.this, ActivitiesImmigrantListActivity.class);
		         startActivity(i);
			}
		});
		/*
		buttonList.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				 Intent i = new Intent(MtlInmigrantShoesActivity.this, LoginActivity.class);
		         startActivity(i);
			}
		});*/
		
		
		
		/*clearCredentials.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				SharedPreferencesImmigrant.getInstance(preferences).clearCredentials();
			}
		});*/
    }
}